<template>
  <div>
    <div class="activemessage-box">
      <div>财务信息</div>
      <div class="active-message">
        <div>
          <div class="number" @click="open">{{ MoneyNum }}</div>
          <div>已缴纳会费</div>
        </div>
        <div>
          <div class="number1"></div>
          <div></div>
        </div>
      </div>
    </div>
    <!-- 弹框 -->
    <Recordsprop :openRecordsprop="Recordspropdata" @financemessage="financemessageval"></Recordsprop>
  </div>
</template>

<script>
import { getselectMoneyNum } from "@/api/bigscreen/bigscreen.js";
import Recordsprop from "../recordsprop/recordsprop.vue";
export default {
  components: {
    Recordsprop,
  },
  data() {
    return {
      MoneyNum: "",
      Recordspropdata: false,
    };
  },
  mounted() {
    this.getMoneyNum();
  },
  methods: {
    // 查看财务信息
    getMoneyNum() {
      getselectMoneyNum().then((res) => {
        if (res.code === 200) {
          const { data } = res;
          // 获取到数据的值
          let data1 = Object.values(data)[0];
          this.MoneyNum = data1;
        }
      });
    },
    open() {
      this.Recordspropdata = true;
    },
    financemessageval(val){
      this.Recordspropdata = val;
    }
  },
};
</script>

<style lang="scss">
$color-blue: #0d3d7f;
$font-color: #09f5fc;
$text-color: #fff;
.activemessage-box {
  padding: 20px;
  color: $font-color;
  .active-message {
    display: flex;
    justify-content: space-around;
    color: $text-color;
    padding: 50px 12px;
   
    .number {
      color: #f59a23;
      font-weight: 700;
      text-align: center;
      margin-bottom: 10px;
      border: #09f5fc 1px solid;
      width: 50px;
      height: 40px;
      line-height: 40px;
      border-radius: 10%;
      margin: auto;
      
    }
    .div {
      //  padding: 20px;
      height: 40px;
      width: 55px;
      line-height: 40px;
      text-align: center;
      // background-color: pink;
      border: $font-color 1px solid;
      border-radius: 5px;
    }
  }
}
</style>
